package factory.abstractfactory;

/**
 * @ClassName TestDemo
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2021/7/15 10:48
 * @Version 1.0
 */
public class TestDemo {
	public static void main(String[] args) {
		final AbstractFactory colorFactory = FactoryProducer.getFactory("color");
		colorFactory.getColor("red").fill();

		final AbstractFactory sharpFactory = FactoryProducer.getFactory("sharp");
		final Sharp sharp = sharpFactory.getSharp("circle");
		sharp.draw();
	}
}
